package mshop.com.schild_kotlin.mvp.model

import android.content.Context
import io.reactivex.Observable
import mshop.com.schild_kotlin.entitys.HotBean
import mshop.com.schild_kotlin.mvp.base.BaseModel

/**
 * Created by mayi on 2018/5/30.
 * @Autor CaiWF
 * @Email 401885064@qq.com
 * @TODO
 */
class CategoryModel:BaseModel(){

    fun loadData(mContext:Context,categoryName :String):Observable<HotBean>{
       return getApiService(mContext).getFindDetailData(categoryName,"date","26868b32e808498db32fd51fb422d00175e179df",83)
    }

    fun loadMoreData(mContext:Context,start :Int,num :Int,categoryName :String):Observable<HotBean>{
        return getApiService(mContext).getFindDetailMoreData(start,num,categoryName,"date")
    }
}